-
Couldn't load subscription status.
- Fork 279
Python code style and typing #2822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix all typing errors and style warnings reported by the `pycodestyle` tool. The max line length is not PEP 8, but limited to 120 characters. As working with mixed types such as `list | None` is annoying, the return value of `None` has been replaced with the empty lists and dictionaries for most functions, as this results in behavioural equivalent Python code in our case.
83066d7 to
c7fb838
Compare
f5ed04a to
224c540
Compare
224c540 to
2fb4986
Compare
7675afb to
d5f3e8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than single comment, LGTM
| parsed = urlparse(domjudge_webapp_folder_or_api_url) | ||
| auth = None | ||
| if parsed.username or parsed.password: | ||
| if parsed.username and parsed.password: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like an actual bugfix, could you put that in a separate commit?
The HTTP Basic Auth requires both a username and password. The typing in the requests library does so as well.
d5f3e8b to
5aac0d0
Compare
No description provided.